<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>修改分类信息</title>
    <link rel="stylesheet" type="text/css" href="/CourseDesign4/manage/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/CourseDesign4/manage/css/main.css"/>
    <script type="text/javascript" src="/CourseDesign4/manage/js/jquery-1.12.4.min.js"></script>
</head>
<body>
	
	<!-- 菜单 -->
	<%@ include file="admin_menu.jsp" %>
	
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/CourseDesign4/manage/admin_index.jsp">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/CourseDesign4/admin_douserquery">分类管理</a><span class="crumb-step">&gt;</span><span>修改分类</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/CourseDesign4/manage/admin_docateupdate" method="post" id="myform" name="myform">
                    <input type="hidden" name="id" value="${category.id}">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>当前父分类：</th>
                                <td>
                                    <input class="common-text required" name="old_parent_id" size="50" type="text" value="${category.parent_id}" readonly="readonly">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>新父分类：</th>
                                <td>
                                    <select class="common-text required" name="new_parent_id" width="100px">
                                    	<option value="0" selected="selected">根分类</option>
                                    	<c:forEach items="${catelist}" var="cate">
                                    		<c:if test="${cate.parent_id==0}">
                                    			<option value="${cate.id}">${cate.name}</option>
                                    		</c:if>
                                    	</c:forEach>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>分类名称：</th>
                                <td>
                                    <input class="common-text required" id="name" name="name" size="50" value="${category.name}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody>
                       	</table>
                       	<script type="text/javascript">
                       	</script>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>	